package com.homevip.util.system;

import java.util.HashMap;
import java.util.Map;

/**
 * 公共数组 - 用单例模式
 *
 * @author panpan
 */
public class CommArray {
    /**
     * 私有化构造方法
     */
    private CommArray() {
    }

    /**
     * 静态初始化器，线程安全
     */
    public static final CommArray instance = new CommArray();

    public static CommArray getInstance() {
        return instance;
    }

    public String[] arr_YesNo = {"", "否", "是"};
    public String[] arr_Isforbid = {"", "禁止", "正常"};
    public String[] arr_IsAudit = {"未审核", "未审核", "已审核"};
    public String[] arr_Gender = {"-", "保密", "男", "女"};
    public String[] arr_Lang = {"", "国语", "粤语", "英语", "潮州话"};

    /**
     * 员工类型
     *
     * @author panpan
     */
    public static enum EnumStaffType {

        _1("服务师"), _6("运营");

        public final String value;

        EnumStaffType(String value) {
            this.value = value;
        }

        public String toString() {
            return super.toString().replace("_", "");
        }

        public int getCode() {
            return Integer.parseInt(this.toString());
        }

        public String getValue() {
            return this.value;
        }
    }

    public String[] getArr_YesNo() {
        return arr_YesNo;
    }

    public String[] getArr_Isforbid() {
        return arr_Isforbid;
    }

    public String[] getArr_IsAudit() {
        return arr_IsAudit;
    }

    public String[] getArr_Gender() {
        return arr_Gender;
    }

    public String[] getArr_Lang() {
        return arr_Lang;
    }

    public EnumStaffType[] getEnumStaffType() {
        return EnumStaffType.values();
    }
}
